import tushare as ts
import pandas as pd
from sklearn.preprocessing import StandardScaler
token = 'd67b0d40ccabf543ac962d2987d124588ae6fa5d2041e70fc8c93beb'
api = ts.pro_api(token)
symbol = '300750.SZ'
count = 10

prices = api.daily(ts_code=symbol, start_date='20210801', end_date='20210813')['close'].tail(count)
def standardNormalize(data):
    return  pd.Series(StandardScaler().fit_transform(prices.values.reshape(-1, 1)).flatten(), index=prices.index)
Data=standardNormalize(prices).rename('标准差标准化值')
print(Data)